import 'package:beautyflutter/componts/base_cared.dart';
import 'package:flutter/material.dart';
//本周推荐
class CardRecommend extends BaseCard {
  @override
  _CardRecommendState createState() => _CardRecommendState();
}
class _CardRecommendState extends BaseCardState {
  @override
  void initState() {
    subTitleColor = Color(0xffb99444);
    super.initState();
  }
  @override
  topTitle(String title) {
    return super.topTitle('本周推荐');
  }
  @override
  Widget subTitle(String title) {
    return super.subTitle('的路上看见分厘卡就螺丝扣搭街坊立刻空间立刻集散地');
  }
  @override
  bottomContent() {
    return Expanded(child: Container(
      constraints: BoxConstraints.expand(),
      margin: EdgeInsets.only(top: 20),
      child: Image.network('https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1588173930397&di=2e8790fc033069e41c73c03251f86052&imgtype=0&src=http%3A%2F%2Fcdn.duitang.com%2Fuploads%2Fitem%2F201409%2F08%2F20140908130732_kVXzh.jpeg',
      fit: BoxFit.cover,
      ),
    ));
  }
}